<?php
class Privileges_Model_Actiondecision implements Privileges_Model_Mainable{
    
    private $action_handler;
    
    public function main(array $variables = null) {
        if(isset($variables['get']['page'])){
            $this->action_handler = new Privileges_Model_Pagedecision;
            return $this->action_handler->main($variables);
        }
        else {
            $page['template'] = "./privileges/views/privileges.php";
            $this->action_handler = new Privileges_Data_Getpriviligeslist;
            $page['content'] = $this->action_handler->main($variables);
            return $page;
        }
    }

}
